import request from '/@/utils/request'
import {prefix} from '/@/api/oa'

export function getStaffCertificates(params: object) {
    return request({
        url: prefix + '/staffCertificate/getStaffCertList',
        method: 'get',
        params
    })
}

export function createCertificate(data: object) {
    return request({
        url: prefix + '/staffCertificate/create',
        method: 'post',
        data
    })
}

export function editCertificate(data: object) {
    return request({
        url: prefix + '/staffCertificate/edit',
        method: 'post',
        data
    })
}

export function removeCertificate(data: object) {
    return request({
        url: prefix + '/staffCertificate/delete',
        method: 'post',
        data
    })
}